package com.guobox.movies.view.timer;

import com.guobox.movies.utils.ResetTimer;

public class CateTitleTimer extends ResetTimer {
    private TimerCallback cateTitleTimerCallback;

//    public static CateTitleTimer instance = null;
//
//    public static CateTitleTimer getInstance(TimerCallback timerCallback) {
//        if (instance == null) {
//            instance = new CateTitleTimer(2000, timerCallback);
//        }
//        return instance;
//    }
    public CateTitleTimer(long delayTime, TimerCallback cateTitleTimerCallback) {
        super(delayTime);
        this.cateTitleTimerCallback = cateTitleTimerCallback;
    }

    @Override
    public void onTimerDown() {
        cateTitleTimerCallback.cateTitleTimerCallback();
    }

}